#include "thread.h"
#include <QMutexLocker>

int Thread::m = 0;
QMutex Thread::mutex;

Thread::Thread() {}

void Thread::run()
{
    for (int var = 0; var < 50000; ++var) {
        QMutexLocker lock(&mutex);
        // mutex.lock();
        m++;
        // mutex.unlock();
    }
}
